package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ocom.common.entity.payconfig.EntityFoodstuffInfo;
import com.ocom.common.request.payconfig.food.GetFoodstuffListRequest;
import com.ocom.common.response.payconfig.OrderSummaryVo;

import java.util.List;

public interface FoodstuffInfoService extends IService<EntityFoodstuffInfo> {
    Integer getOnline(Long companyId,Integer merchId,Integer foodClassId);

    PageInfo<EntityFoodstuffInfo> getList(Long companyId, GetFoodstuffListRequest request);

    Integer getSameNameCode(Long companyId,Integer merchId,String foodstuffCode,String foodstuffName ,Boolean isUpdate,Integer foodstuffId);

    Boolean saveOne(Long companyId,EntityFoodstuffInfo entityFoodstuffInfo);

    Integer getMaxSort(Long companyId,EntityFoodstuffInfo entityFoodstuffInfo);

    Boolean updateOne(Long companyId,EntityFoodstuffInfo entityFoodstuffInfo);

    List<OrderSummaryVo.FoodstuffList> getFoodstuffList(Long companyId, List<Integer> foodIds);
}
